package de.sordul.md5crack;

import de.sordul.md5crack.util.Charset;

/**
 * MD5 Cracker.
 */
public interface IMD5Crack  {
	
	/**
	 * Tries to compute a fitting string for given MD5.
	 * @param md5 MD5 string
	 * @return String fitting MD5
	 */
	public String crack(String md5, Charset charset);
	
	/**
	 * Tries to compute a fitting string for given MD5. 
	 * Returns NULL after the given maximum string length.
	 * @param md5 MD5 string
	 * @param Maximum length of potential string
	 * @return String fitting MD5
	 */
	public String crack(String md5, Charset charset, int length);
}
